package com.three.server.init;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ProjectName : drive
 * @PackageName : com.three.server.init
 * @ClassName : Weilan
 * @Author : ZhouTeng
 * @CreateTime : 2023/10/24 15:23
 */

@Component
public class Fence {

    private static List<Map<Map<String,String>,String>> map=new ArrayList<>();
    private static List<String> name = new ArrayList<>();
    @PostConstruct
    public static void init(){
        Map<Map<String, String>, String> item = new HashMap<>();
        HashMap<String, String> objectObjectHashMap = new HashMap<>();
        objectObjectHashMap.put("ONE","121.311722,31.000821");
        objectObjectHashMap.put("FOUR","121.311722,30.805218");
        objectObjectHashMap.put("TWO","121.792374,31.000821");
        objectObjectHashMap.put("THREE","121.792374,30.805218");
        item.put(objectObjectHashMap,"ShangHai-FengXian");
        HashMap<String, String> objectObjectHashMap2 = new HashMap<>();
        objectObjectHashMap2.put("ONE","116.29,39.99");
        objectObjectHashMap2.put("TWO","116.49,39.99");
        objectObjectHashMap2.put("THREE","116.49,39.83");
        objectObjectHashMap2.put("FOUR","116.29,39.83");
        item.put(objectObjectHashMap2,"BeiJing-DongCheng");
        map.add(item);

        name.add("ShangHai-FengXian");
        name.add("BeiJing-DongCheng");
    }

    public static List<Map<Map<String,String>,String>>  fence(){
        return map;
    }
    public static List<String>  getName(){
        return name;
    }
}
